home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / air / update / logging / Level.as next >
Text File  |  2009-12-16  |  1KB  |  58 lines

  1. package air.update.logging
  2. {
  3.    public class Level
  4.    {
  5.       
  6.       public static const ALL:int = int.MIN_VALUE;
  7.       
  8.       public static const WARNING:int = 900;
  9.       
  10.       public static const SEVERE:int = 1000;
  11.       
  12.       public static const INFO:int = 800;
  13.       
  14.       public static const OFF:int = int.MAX_VALUE;
  15.       
  16.       public static const CONFIG:int = 700;
  17.       
  18.       public static const FINER:int = 400;
  19.       
  20.       public static const FINE:int = 500;
  21.       
  22.       public static const FINEST:int = 300;
  23.        
  24.       
  25.       public function Level()
  26.       {
  27.          super();
  28.       }
  29.       
  30.       public static function getName(param1:int) : String
  31.       {
  32.          switch(param1)
  33.          {
  34.             case Level.ALL:
  35.                return "ALL";
  36.             case Level.FINEST:
  37.                return "FINEST";
  38.             case Level.FINER:
  39.                return "FINER";
  40.             case Level.FINE:
  41.                return "FINE";
  42.             case Level.CONFIG:
  43.                return "CONFIG";
  44.             case Level.INFO:
  45.                return "INFO";
  46.             case Level.WARNING:
  47.                return "WARNING";
  48.             case Level.SEVERE:
  49.                return "SEVERE";
  50.             case Level.OFF:
  51.                return "OFF";
  52.             default:
  53.                return "";
  54.          }
  55.       }
  56.    }
  57. }
  58.